package com.fadadianqi.logistics.admin.staff.service;

import java.util.HashMap;

public class ActionMap {

    private static final HashMap<String, String> ACT = new HashMap<String, String>();

    public static final String getName(ActionEnum e) {
        return ACT.get(e.toString());
    }

    public static Object getName(String id) {
        return ACT.get(id);
    }

    static {

        ACT.put(ActionEnum.STORE_VIEW.toString(), "浏览库存");
        ACT.put(ActionEnum.STORE_MODIFY.toString(), "入库出库");
        ACT.put(ActionEnum.STORE_DISPATCH.toString(), "货物调度");
        ACT.put(ActionEnum.STORE_DEL.toString(), "删除库存");
        ACT.put(ActionEnum.STORE_BACKTRACK.toString(), "退货管理");
        ACT.put(ActionEnum.STORE_VIEW_BATCH.toString(), "浏览进货记录");
        ACT.put(ActionEnum.STORE_VIEW_COST.toString(), "查看成本价");

        ACT.put(ActionEnum.STORE_HOUSE_DEL.toString(), "删除库房");
        ACT.put(ActionEnum.STORE_HOUSE_MODIFY.toString(), "库房管理");
        ACT.put(ActionEnum.STORE_HOUSE_VIEW.toString(), "浏览库房");

        ACT.put(ActionEnum.SELL_VIEW.toString(), "销售记录");
        ACT.put(ActionEnum.SELL_MODIFY.toString(), "销售商品");


        ACT.put(ActionEnum.CUSTOMER_VIEW.toString(), "浏览客户");
        ACT.put(ActionEnum.CUSTOMER_MODIFY.toString(), "修改客户");
        ACT.put(ActionEnum.CUSTOMER_BALANCE_MODIFY.toString(), "存款修改");
        ACT.put(ActionEnum.CUSTOMER_DEBT_MODIFY.toString(), "负债修改");


        ACT.put(ActionEnum.AREA_VIEW.toString(), "浏览地区");
        ACT.put(ActionEnum.AREA_MODIFY.toString(), "修改地区");
        ACT.put(ActionEnum.AREA_DEL.toString(), "删除地区");


        ACT.put(ActionEnum.GOODS_VIEW.toString(), "浏览商品");
        ACT.put(ActionEnum.GOODS_MODIFY.toString(), "管理商品");
        ACT.put(ActionEnum.GOODS_DEL.toString(), "删除商品");

        ACT.put(ActionEnum.BRAND_VIEW.toString(), "浏览品牌");
        ACT.put(ActionEnum.BRAND_MODIFY.toString(), "管理品牌");
        ACT.put(ActionEnum.BRAND_DEL.toString(), "删除品牌");

        ACT.put(ActionEnum.CATEGORY_VIEW.toString(), "浏览分类");
        ACT.put(ActionEnum.CATEGORY_MODIFY.toString(), "修改分类");
        ACT.put(ActionEnum.CATEGORY_DEL.toString(), "删除分类");

        ACT.put(ActionEnum.IN_OUT_VIEW.toString(), "浏览流水");
        ACT.put(ActionEnum.IN_OUT_MODIFY.toString(), "修改流水");
        ACT.put(ActionEnum.IN_OUT_DEL.toString(), "删除流水");

        ACT.put(ActionEnum.SEARCH_INDEX.toString(), "索引管理");
        ACT.put(ActionEnum.STAT_VIEW.toString(), "统计分析");

        ACT.put(ActionEnum.STAFF_GROUP_VIEW.toString(), "浏览员工组");
        ACT.put(ActionEnum.STAFF_GROUP_MODIFY.toString(), "修改员工组");
        ACT.put(ActionEnum.STAFF_MASTER_VIEW.toString(), "员工浏览");
        ACT.put(ActionEnum.STAFF_MASTER_MODIFY.toString(), "员工管理");

        ACT.put(ActionEnum.STAFF_GROUP_ACTION_MODIFY.toString(), "组权限修改");
        ACT.put(ActionEnum.STAFF_MASTER_GROUP_MODIFY.toString(), "员工所在组修改");

    }
}
